package com.ml.mall.mapper.country;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ml.mall.bean.res.country.CountryQueryAllRes;
import com.ml.mall.bean.res.seting.CountryRes;
import com.ml.mall.entity.country.Country;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CountryMapper extends BaseMapper<Country> {
    //查询所有国家
    List<CountryQueryAllRes> queryAllCountry();

    /**
     * @description    :全查询查询国家名称
     * @author         :zxm
     * @date           :2021/5/20
    **/
    @Select("select id,country_name from sys_a_country where is_delete = 0")
    List<CountryRes> selectListCountry();
}
